package cn.itcast.domain;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by leiylong on 2020/4/21
 */
@Table(name = "dingdan")
public class DingDan implements Serializable {
    @Id
    private String d_id;
    private String d_name;

    private Integer d_count;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date d_date;
    //@JSONField(format="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date d_time;

    public String getD_id() {
        return d_id;
    }

    public void setD_id(String d_id) {
        this.d_id = d_id;
    }

    public String getD_name() {
        return d_name;
    }

    public void setD_name(String d_name) {
        this.d_name = d_name;
    }

    public Integer getD_count() {
        return d_count;
    }

    public void setD_count(Integer d_count) {
        this.d_count = d_count;
    }

    public Date getD_date() {
        return d_date;
    }

    public void setD_date(Date d_date) {
        this.d_date = d_date;
    }

    public Date getD_time() {
        return d_time;
    }

    public void setD_time(Date d_time) {
        this.d_time = d_time;
    }

    @Override
    public String toString() {
        return "DingDan{" +
                "d_id=" + d_id +
                ", d_name='" + d_name + '\'' +
                ", d_count=" + d_count +
                ", d_date='" + d_date + '\'' +
                ", d_time='" + d_time + '\'' +
                '}';
    }


}
